package eproject.mm.com.projectsupervision.adapter;

import android.support.v4.app.Fragment;
import android.support.v4.app.FragmentManager;
import android.support.v4.app.FragmentPagerAdapter;
import android.view.View;

import java.util.ArrayList;
import java.util.List;

import eproject.mm.com.projectsupervision.fragment.BaseFragment;
import eproject.mm.com.projectsupervision.fragment.ProblemFragment;

public class ProblemFragmentPagerAdapter extends FragmentPagerAdapter {
    private ArrayList<View> viewLists;
    private FragmentManager fragmetnmanager;
    private List<ProblemFragment> listfragment;

    public ProblemFragmentPagerAdapter(FragmentManager fm, List<ProblemFragment> list) {
        super(fm);
        this.fragmetnmanager = fm;
        this.listfragment = list;
    }

    @Override
    public Fragment getItem(int arg0) {
        return listfragment.get(arg0);
    }

    @Override
    public int getCount() {
        return listfragment.size();
    }

}